<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>住院押金管理</title>
</head>
<body>
<div class="easyui-panel" data-options="fit:true,border:false,onOpen:initwindowPatientQuery">
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding: 2px; border-left: none;">
		<input id="displayLiveID" type="hidden"  value="${liveRecord.liveid8}">
				<table style="width: 100%; height:23%; padding: 2px 3px;">
					<tr>
						<td width="25%">住院编号：<span class="sp">${liveRecord.liveid8}</span></td>
						<td width="25%">病人姓名：<span class="sp">${liveRecord.patientname8}</span></td>
						<td width="25%">住院通知：<span class="sp">${liveRecord.livenoticid3}</span></td>
						 <td width="25%">住院状态：<span class="sp">${liveRecord.livestatus}</span></td>
					</tr>
					<tr>
						<td width="25%">住院类型：<span class="sp">${liveRecord.livetypename}</span></td>
						<td width="25%">主治医生：<span class="sp">${liveRecord.staff.staffname}</span></td>
						<td width="25%">所属科室：<span class="sp">${liveRecord.liveoffice4}</span></td>
						<td width="25%">病人年龄：<span class="sp">${liveRecord.patientage}</span></td>
					</tr>
					<tr>
						<td width="25%">门急诊号：<span class="sp">${liveRecord.mjnumber3}</span></td>
						<td width="25%">门急医生：<span class="sp">${liveRecord.mjdoctorname}</span></td>
						<td width="25%">身份证号：<span class="sp">${liveRecord.idcard}</span></td>
						<td width="25%">联系电话：<span class="sp">${liveRecord.patienttel}</span></td>
					</tr>
					<tr>
						<td width="25%">病人性别：<span class="sp">${liveRecord.patientsex}</span></td>
						<td width="25%">家属姓名：<span class="sp">${liveRecord.familyname}</span></td>
						<td width="25%">家属关系：<span class="sp">${liveRecord.familyrelation}</span></td>
						<td width="25%">家属电话：<span class="sp">${liveRecord.familytel}</span></td>
					</tr>
					<tr>
						<td width="25%" colspan="2">家庭住址：<span class="sp">${liveRecord.patientloc}</td>
						<td width="25%" colspan="2">所住床位：<span class="sp">${liveRecord.bedTable.sickroomTable.floor.build.buildname}
						${liveRecord.bedTable.sickroomTable.floor.floorname}
						${liveRecord.bedTable.sickroomTable.sickroomname}号房
						${liveRecord.bedTable.bedname}号床</td>
						
					</tr>
				</table>
	
				<div class="easyui-tabs" border="false" style="width: 100%; height: 77%;">
					<div title="费用清单">
						<table class="easyui-datagrid"  id="patientInfo_feesTable"
							data-options="singleSelect:true,fitColumns: true,width:'100%',
		                fit:true,nowrap: false,rownumbers:true,border:false,pagination:true,
		                pageList:[15],pageSize:15
						">
							<thead>
								<tr>
									<th style="width: 12%;" data-options="field:'tallyid',align:'center'">每日费用编号</th>
									<th style="width: 10%;" data-options="field:'patientname5',align:'center'">病人姓名</th>
									<th style="width: 10%;" data-options="field:'livetype',align:'center'">住院类型</th>
									<th style="width: 18%;" data-options="field:'tallytime',align:'center'">记账时间</th>
									<th style="width: 8%;" data-options="field:'tallytotal',align:'center'">账单合计</th>
									<th style="width: 8%;" data-options="field:'lacklimit',align:'center'">未结费用</th>
									<th style="width: 8%;" data-options="field:'balance',align:'center'">余额</th>
									<th style="width: 10%;" data-options="field:'tallystatus',align:'center'">核算状态</th>
									<th style="width: 8%;" data-options="field:'paystatus2',align:'center'">结算状态</th>
									<th style="width: 8%;" data-options="field:'admin4',align:'center'">经办人</th>
								</tr>
							</thead>
						</table>
					</div>
					
					<div title="缴费清单">
						<table class="easyui-datagrid" id="patientInfo_payTable"
							data-options="singleSelect:true,fitColumns: true,width:'100%',
		                fit:true,nowrap: false,rownumbers:true,border:false,pagination:true,
		                pageList:[15],pageSize:15
						">
							<thead>
								<tr>
									<th style="width: 20%;" data-options="field:'payid',align:'center'">缴费编号</th>
									<th style="width: 15%;" data-options="field:'paytype',align:'center'">缴费类型</th>
									<th style="width: 15%;" data-options="field:'patientname2',align:'center'">病人姓名</th>
									<th style="width: 20%;" data-options="field:'paytime',align:'center'">缴费时间</th>
									<th style="width: 15%;" data-options="field:'payamount',align:'center'">缴费金额</th>
									<th style="width: 15%;" data-options="field:'admini',align:'center'">经办人</th>
								</tr>
							</thead>
						</table>
					</div>
					
					<div title="住院押金">
						<table class="easyui-datagrid" id="patientInfo_yajinTable"
							data-options="singleSelect:true,fitColumns: true,width:'100%',
		                fit:true,nowrap: false,rownumbers:true,border:false
						">
							<thead>
								<tr>
									<th style="width: 17%;" data-options="field:'depositid2',align:'center'">押金编号</th>
									<th style="width: 9%;" data-options="field:'patientname5',align:'center'">病人姓名</th>
									<th style="width: 9%;" data-options="field:'liveoffice4',align:'center'">科室</th>
									<th style="width: 12%;" data-options="field:'depositlimit4',align:'center'">押金额度</th>
									<th style="width: 12%;" data-options="field:'takelimit',align:'center'">实收金额</th>
									<th style="width: 12%;" data-options="field:'depositstatus',align:'center'">押金状态</th>
									<th style="width: 17%;" data-options="field:'taketime',align:'center'">收取时间</th>
									<th style="width: 12%;" data-options="field:'takeadmin',align:'center'">经办人</th>
								</tr>
							</thead>
						</table>
					</div>
					
					
				</div>
			</div>

			<div data-options="region:'east'" style="padding: 1px; width: 20%;">
				<table class="easyui-datagrid" style="font-size: 12px;" id="patientInfo_visitor_Table"
					data-options="singleSelect:true,fitColumns: true, nowrap: true,
					fit:true,border:false,title:'近期探访人...'
				">
					<thead>
						<tr>
							<th data-options="field:'visittime',width:80,align:'center'">探视时间</th>
							<th data-options="field:'visitname',width:45,align:'center'">探访人</th>
							<th data-options="field:'visitrelation',width:45,align:'center'">关系</th>
						</tr>
					</thead>
				</table>
			</div>

		</div>
</div>		
		<style type="text/css">
		.sp{
			font-size:13px;
			color:#1B3459;
		}
		</style>
</body>
</html>